<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="sjr" uri="/struts-jquery-richtext-tags"%>

    <s:form id="formulaire" action="ajouteArticle" theme="simple">
    
    <s:hidden name="escape" value="false"/>
		<s:textfield name="article.titre" id="article.titre" type="text" value="%{getText('usercontroller.titrearticle')}"/>
		
	<s:select name="%{@java.lang.Integer@parseInt(article.categorie.id)}" list="listeCategorie" listkey="id" listValue="categorie" ></s:select> 
		
		<br/>
		
	
		
	<s:textfield value="%{@java.lang.Integer@parseInt(#session.currentUser.id)}" name="article.auteur.id"/>
				
		<sjr:tinymce 
			id="richtextTinymceAdvancedEditor" 
			
			
			name="article.contenu" 
			
			
			rows="10" 
			cols="80" 
			width="500"
					
			editorLocal="fr"
			editorTheme="advanced"
			editorSkin="o2k7"
			toolbarAlign="left"
			toolbarLocation="top"
			statusbarLocation="bottom"
			resizable="true"
			pastePlainText="true"
			plugins="safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template"
			toolbarButtonsRow1="save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect"
			toolbarButtonsRow2="cut,copy,pastetext,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor"
			toolbarButtonsRow3="tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen"
			toolbarButtonsRow4="insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage"
			onSaveTopics="submitRichtextForm"
			height="500"
			
		/>
		<br/>
		<sj:submit 
			id="formulaireSubmit"
			value="%{getText('usercontroller.publier')}" 
			button="true"
		 />
		
    </s:form>